for i in range(0, 10):
	print i * i
l1 = range(20, 30)
print
soma = 0
for x in l1:
	soma += x
for k in xrange(20, 0, -1):
	if k > 10:
		print k
	else:
		print 2 * k